<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>精羽门-羽毛球爱好者的江湖</title>
    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/Css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Css/startbbs.css" rel="stylesheet">
    <link rel="stylesheet" href="__PUBLIC__/Css/allan.css">

</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">精羽门</a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li id='nav_index'><a href="/">首页</a></li>
        <li id='nav_about'><a href="<?php echo U('Index/about');?>">关于</a></li>
        <li id="nav_act_add"><a href="<?php echo U('Activity/add');?>">发起活动</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <?php if ($_SESSION['uname']) : ?>
        	<li><a href='#'>欢迎<?php echo $_SESSION['uname']; ?></a></li>
        	<li><a href='<?php echo U('Login/logout');?>'>注销</a></li>
        <?php else : ?>
        	<li id='nav_login'><a href='<?php echo U('Login/login');?>'>登录</a></li>
			<li id='nav_reg'><a href='<?php echo U('Login/register');?>'>注册</a></li>
		<?php endif; ?>	
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</div>
<div id="wrap">
	<div class="container" id="page-main">
		<div class="row">
			<div class='col-xs-12 col-sm-6 col-md-8'>
				<div class='box'>
					<div class='cell'>
						<span class="chevron">&nbsp;›&nbsp;</span> 注册
					</div>
					<div class='inner'>
						<form id="form_act" accept-charset="UTF-8" action="<?php echo U('runRegis');?>"  class="form-horizontal" 
							  id="form_act" method="post" novalidate="novalidate">
							<div class="form-group">
								<label class="col-sm-3 control-label" for="uname">用户名</label>
								<div class="col-sm-6">
									<input autofocus="autofocus" class="form-control"
										id="uname" name="uname" size="50" type="text"
										value=""/>
								</div>
								<span class="help-inline red">*</span>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label" for="user_password">密码</label>
								<div class="col-sm-6">
									<input class="form-control" id="pwd" name="pwd"
										size="50" type="password" value="" />
								</div>
								 <span class="help-inline red">*</span>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label" for="email">电子邮件</label>
								<div class="col-sm-6">
									<input class="form-control" id="email" name="email"
										size="50" type="email"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label" for="nickname">
									昵称
								</label>
								<div class="col-sm-6">
									<input class="form-control" id="nickname" name="nickname" size="50">
								</div>
							</div>
							<div class='form-group'>
								<div class="col-sm-offset-3 col-sm-2">
									<span id="submit_form" class="btn btn-success">注册</span>
								</div>

							</div>
						</form>

						</div>
					</div>

				</div>
				<div class='col-xs-12 col-sm-6 col-md-4' id='Rightbar'>
					<div class="box">
						<div class="cell">注册说明</div>
						<div class="inner">
						  <h5>1、登录名和密码是必填项</h5>
						  <h5>2、邮箱可用于找回密码，建议填写</h5>
						  <h5>3、输入昵称，则用户信息使用昵称，否则使用用户名;昵称可以修改，用户名不能修改</h5>
						  <h5>4、输入完成后，点击回车即可提交</h5>
						  <h5>5、注册成功后会自动登录并转向首页</h5>
						</div>
					</div>
				</div>
			</div>
			<hr>
<footer>
  <p>AntsClub 2013-2014</p>
</footer>
		</div>
	</div>
	<script>
		var checkUname = "<?php echo U('checkUnique','cName=uname');?>";
		var checkEmail = "<?php echo U('checkUnique','cName=email');?>";
		var checkNickname = "<?php echo U('checkUnique','cName=nickname');?>";
	</script>
	<script src="__PUBLIC__/Js/jquery-1.8.0.min.js"></script>
<script src="__PUBLIC__/Js/bootstrap.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Js/jquery-validate.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Js/register.js"></script>
</body>
</html>